// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 返回结果文件名称，删除模型 DELETE /Result/delete */
export async function deleteModelUsingDELETE1(
  body: API.resultFile,
  options?: { [key: string]: any },
) {
  return request<string>('/Result/delete', {
    method: 'DELETE',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 接受结果文件名称,下载结果文件 POST /Result/download */
export async function DownloadUsingPOST1(body: API.resultFile, options?: { [key: string]: any }) {
  return request<any>('/Result/download', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** 返回所有结果文件的名称 GET /Result/list */
export async function listUsingGET1(options?: { [key: string]: any }) {
  return request<API.resultFile[]>('/Result/list', {
    method: 'GET',
    ...(options || {}),
  });
}

/** 接受结果文件名称,返回结果文件数据 POST /Result/resultlist */
export async function getJsonDataUsingPOST(body: API.Document, options?: { [key: string]: any }) {
  return request<API.ResultVo>('/Result/resultlist', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
